package com.laowang;

import com.laowang.common.utils.DateUtil;

import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.util.Calendar;
import java.util.Date;

/**
 * @Auther laowang
 * @Date 2022/8/15
 * @Description
 */
public class test06 {

    public static void main(String[] args) {
        /*LocalDate currentDate = LocalDate.now();
        String k = String.valueOf(currentDate.getDayOfWeek());
        System.out.println(k);*/




        Date date = new Date();

        Calendar calendar = Calendar.getInstance();
        calendar.setTime(new Date());
        calendar.set(Calendar.HOUR_OF_DAY, 0);
        calendar.set(Calendar.MINUTE, 0);
        calendar.set(Calendar.SECOND, 0);
        SimpleDateFormat todaySdf = new SimpleDateFormat("yyyy-MM-dd");
        String today = todaySdf.format(calendar.getTime());
        String finalString = today + " " + "19:30:00";
        Date date1 = DateUtil.stringtoDate(finalString, DateUtil.FORMAT_ONE);
        System.out.println(date1);
        System.out.println(date.before(date1));

    }
}
